package com.zwr.mvpdemo;

import android.util.Log;

import com.zwr.mvpdemo.bean.User;
import com.zwr.mvpdemo.net.APIService;
import com.zwr.mvpdemo.net.RetrofitClient;

import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;


/**
 * 本来也需要一个接口 ，但我觉得可以省
 */
public class MainManger {

    private APIService  apiService = RetrofitClient.DYNAMIC.createApi();

    public Observable<User> login(String name,String pwd){

        return apiService.login(name,pwd);
    }

    public Call<ResponseBody> sharewarehouse(){
        Log.e("MainActivity",apiService.toString());
        return apiService.sharewarehouse("Vl2uiYYVXuMYAcQf2nT4Ila4wYc41706awSNFII","rbhKQ1aYwIOvw89jaaLmaipQtCGnlmRfcELdoFWa","0");
    }
}
